package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 用户实体类
 */
@TableName("t_user")
public class UserBean {
    //用户id
    @TableId(value = "pk_userId",type = IdType.AUTO)
    private Integer id;
    //用户名
    @TableField("t_userAccount")
    private String userName;
    //用户真实姓名
    @TableField("t_userName")
    private String name;
    //用户密码
    @TableField("t_userPassword")
    private String password  = "123";
    //用户等级
    @TableField("t_userGrade")
    private String grade;
    public UserBean (){}

    public UserBean(String userName, String name,  String grade) {
        this.userName = userName;
        this.name = name;
        this.grade = grade;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", grade='" + grade + '\'' +
                "}\n";
    }
}
